<?php
class FieldRelationBindignEventArgs {
    public $fieldName = "";
    public $fieldValue = "";
    public $fieldText = "";
    public $dataSource;
    private $cancel = false;
    private $type = "select";
    
    public function Cancel()
    {
        $this->cancel = true;
    }
    public  function UndoCancel()
    {
        $this->cancel = false;
    }
    public function IsCancelled()
    {
        return $this->cancel;
    }
    public function TypeAsSelect()
    {
        $this->type = "select";
    }
    public function TypeAsMultiselect()
    {
        $this->type = "multiselect";
    }
    public function GetType()
    {
        return $this->type;
    }
    public function SetDataSource(Doctrine_Collection $dataSource)
    {
        $this->dataSource = $dataSource;
    }
    public function GetDataSource()
    {
        return $this->dataSource;
    }
}
?>